home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / query.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-05-07  |  1.0 KB  |  47 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef QUERY_H
  8. #define QUERY_H
  9.  
  10. #include <QDialog>
  11. #include <QVBoxLayout>
  12. #include <QGridLayout>
  13. #include <QHBoxLayout>
  14. class QLabel;
  15. class QLineEdit;
  16. class QPushButton;
  17. class QString;
  18.  
  19. #include "scribusapi.h"
  20.  
  21. class SCRIBUS_API Query : public QDialog
  22. {
  23.     Q_OBJECT
  24.  
  25. public:
  26.     Query( QWidget* parent=0, const char* name=0, bool modal = FALSE, Qt::WFlags fl=0, QString text=0,
  27.            QString titel=0 );
  28.     ~Query() {};
  29.  
  30.     const QString getEditText();
  31.     void setEditText(QString newText, bool setSelected);
  32.  
  33. public slots:
  34.     void Leave();
  35.  
  36. private:
  37.     QVBoxLayout* queryLayout;
  38.     QHBoxLayout* editLayout;
  39.     QHBoxLayout* okCancelLayout;
  40.     QPushButton* okButton;
  41.     QPushButton* cancelButton;
  42.     QLineEdit* answerEdit;
  43.     QLabel* questionLabel;
  44. };
  45.  
  46. #endif // QUERY_H
  47.